package com.hardy.tree;

import java.util.ArrayList;



public class TreeNode {
	private String nodeId;
	private String nodeName;
	private String nodePid;
	private ArrayList<TreeNode> children = new ArrayList<TreeNode>();

	public TreeNode() {
	}
	public void add(TreeNode node) {
		this.children.add(node);
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}


	public String getNodeId() {
		return nodeId;
	}


	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
	public String getNodePid() {
		return nodePid;
	}


	public void setNodePid(String nodePid) {
		this.nodePid = nodePid;
	}

	public ArrayList<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(ArrayList<TreeNode> children) {
		this.children = children;
	}
}
